<!-- BEGIN: main -->
<!-- BEGIN: data -->
<table summary="" class="tab1">
	<thead>
		<tr>
			<td width="10px" align="center"></td>
			<td><strong>{LANG.money_name}</strong></td>
			<td><strong>{LANG.currency}</strong></td>
			<td><strong>{LANG.exchange}</strong></td>
			<td width="120px" align="center"><strong>{LANG.comment_funcs}</strong></td>
		</tr>
	</thead>
	<!-- BEGIN: row -->
	<tr{bg}>
		<td><input type="checkbox" class="ck" value="{ROW.id}" /></td>
		<td>{ROW.code}</td>
		<td>{ROW.currency}</td>
		<td>{ROW.exchange}</td>
		<td align="center"><span class="edit_icon"><a href="{ROW.link_edit}" title="">{LANG.edit}</a></span>&nbsp; <span class="delete_icon"><a href="{ROW.link_del}" class="delete" title="">{LANG.del}</a></span></td>
	</tr>
	<!-- END: row -->
	<tfoot>
		<tr>
			<td colspan="5"><a href="#" id="checkall">{LANG.prounit_select}</a> | <a href="#" id="uncheckall">{LANG.prounit_unselect}</a> | <a href="#" id="delall">{LANG.prounit_del_select}</a></td>
		</tr>
	</tfoot>
</table>
<script type='text/javascript'>
	$(function(){
	$('#checkall').click(function(){
		$('input:checkbox').each(function(){
			$(this).attr('checked','checked');
		});
	});
	$('#uncheckall').click(function(){
		$('input:checkbox').each(function(){
			$(this).removeAttr('checked');
		});
	});
	$('#delall').click(function(){
		if (confirm("{LANG.prounit_del_confirm}"))
		{
			var listall = [];
			$('input.ck:checked').each(function(){
				listall.push($(this).val());
			});
			if (listall.length<1){
				alert("{LANG.prounit_del_no_items}");
				return false;
			}
			$.ajax({	
				type: 'POST',
				url: '{URL_DEL}',
				data:'listall='+listall,
				success: function(data){				
					window.location='{URL_DEL_BACK}';
				}
			});
		}
	});
	$('a.delete').click(function(event){
		event.preventDefault();
		if (confirm("{LANG.prounit_del_confirm}"))
		{
			var href= $(this).attr('href');
			$.ajax({	
				type: 'POST',
				url: href,
				data:'',
				success: function(data){	
					window.location='{URL_DEL_BACK}';
				}
			});
		}
	});
	});
	</script>
<!-- END: data -->

<form action="" method="post"><input name="savecat" type="hidden" value="1" />
<table summary="{DATA.caption}" class="tab1">
	<caption>{DATA.caption}</caption>
	<tr>
		<td align="right" width="150px"><strong>{LANG.money_name}: </strong></td>
		<td><select name="code">
			<!-- BEGIN: money -->
			<option value="{DATAMONEY.value}"{DATAMONEY.selected}>{DATAMONEY.title}</option>
			<!-- END: money -->
		</select></td>
	</tr>
	<tr>
		<td valign="top" align="right"><strong>{LANG.currency}: </strong></td>
		<td><input style="width: 600px" name="currency" type="text" value="{DATA.currency}" maxlength="255" /></td>
	</tr>
	<tr>
		<td valign="top" align="right"><strong>{LANG.exchange}: </strong></td>
		<td><input style="width: 600px" name="exchange" type="text" value="{DATA.exchange}" maxlength="255" /></td>
	</tr>
</table>
<br>
<center><input name="submit" type="submit" value="{LANG.prounit_save}" /></center>
</form>
<!-- END: main -->